<?php if(count($this->messages)>0): ?>
<div class="messages">
    <ul>
    <?php foreach($this->messages as $message): ?>
        <li><?php echo $message ?></li>
    <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>

<?php echo $this->form ?>

<script type="text/javascript">
/* <![CDATA[ */
confirmPassword = function(value, constraints) {
    var isValid = false;
    if(constraints && constraints.other)  {
        var otherInput =  dijit.byId(constraints.other);
        if(otherInput) {
                var otherValue = otherInput.value;
                isValid = (value == otherValue);
        }
    }
    return isValid;
};

dojo.addOnLoad(function() {
    dijit.byId('submitbutton').setLabel('<img src="<?php echo $this->baseUrl() ?>/images/mini/save.png" /> Gardar');
});
/* ]]> */
</script>